package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="WebPage"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class WebPage implements Serializable {

    /** identifier field */
    private Integer id;

    /** nullable persistent field */
    private String pagetitle;

    /** nullable persistent field */
    private String isindex;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public WebPage(String pagetitle, String isindex, String remark) {
        this.pagetitle = pagetitle;
        this.isindex = isindex;
        this.remark = remark;
    }

    /** default constructor */
    public WebPage() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="pagetitle"
     *             length="50"
     *         
     */
    public String getPagetitle() {
        return this.pagetitle;
    }

    public void setPagetitle(String pagetitle) {
        this.pagetitle = pagetitle;
    }

    /** 
     *            @hibernate.property
     *             column="isindex"
     *             length="1"
     *         
     */
    public String getIsindex() {
        return this.isindex;
    }

    public void setIsindex(String isindex) {
        this.isindex = isindex;
    }

    /** 
     *            @hibernate.property
     *             column="remark"
     *             length="50"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
